package com.gary.springcloud.service.impl;

import com.gary.springcloud.entity.Payment;
import com.gary.springcloud.mapper.PaymentMapper;
import com.gary.springcloud.service.IPaymentService;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @author pengrui
 * @date 2020/12/30 - 15:48
 */
@Service(value = "paymentService")
public class PaymentServiceImpl implements IPaymentService {

    @Resource
    private PaymentMapper paymentMapper;

    @Override
    public Integer save(Payment payment) {
        return paymentMapper.save(payment);
    }

    @Override
    public Payment queryById(@Param("id") Long id) {
        return paymentMapper.queryById(id);
    }
}
